const { defineConfig } = require("@vue/cli-service");
const path = require("path");
module.exports = defineConfig({
  transpileDependencies: true,
  publicPath:"./",
  devServer:{
    proxy:{
      "/crmeb":{
        target:"https://apif.java.crmeb.net/api/front",
        changeOrigin: true,
        pathRewrite: {
          "^/crmeb": "",
        },
      }
    }
  },

  configureWebpack: {
    // 配置路径别名
    resolve: {
      alias: {
        "@/assets": path.resolve(__dirname, "src/assets"),
        "@/utils": path.resolve(__dirname, "src/utils"),
      },
    },

  },
});
